package controller.listeners.manualCode;

import java.util.HashMap;
import model.ManualCodeModel;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import business.database.cache.CacheCodeCorp;
import view.ManualCodeView;

public class CandidateCentersDblClickSelectionListener implements Listener {

	private ManualCodeView _view;
	private ManualCodeModel _model;
	
			public CandidateCentersDblClickSelectionListener(ManualCodeView view,
					ManualCodeModel model) {
				this._model = model;
				this._view = view;
			}
			
			@Override
			public void handleEvent(Event event) {
				HashMap<Integer,CacheCodeCorp> modCorps = _model.codedWitchCenterForAllcheckedIdCodeCorp(false);
				_view.updateCacheCodeCorps(modCorps);
				
			}
			
			
			
		}